This was causing a error when the application was run due to the regular user not having write permissions.