refactored appserver wrapper script due to dyld path