Changed the location for temp directory as it is shared by the system programs. All file creations also set the permission