switched to directoryMode to make sure bin has the right perms