Use path.resolve() to convert absolute paths. Fixes #1

Also, refactored a bit to show cleanier output