Corrected permissions for new directories.

Used the directory permissions as Jenkins does.