Changing default directory and file modes.