Added better handling for determining application source directory from zip files