Fixed permissions issue on *nix