Fixed getDir() to that resources will be bundled correctly