Added method to find out if it's running from jar or not to load resources