Fixed permission error when pushing a directory.