def METHOD_NAME(executable):
    """Determine if the specified executable is a .sh (contains a #! line)"""
    try:
        fp = open(executable)
        magic = fp.read(2)
        fp.close()
    except IOError, OSError:
        return executable
    return magic == '#!'