Change to application path instead of current path, fix mac/linux client detection, add non-interactive batch command