Now checks for validity of applications passed to lr-run-app and automatically resolves port