Fix bug where duplcate globals file is created in the Resources folder