fix permissions of nailgun dir