Refactor deplyoment scanner for usage with Linux + Mac OS X