Fixed POSIX permission code to be correct bit mapping