Fix path issues when app is loaded as a module
Test script for loading app as a module