Link packages when not stored in ~/.atom

The specs were missing asserts for apm link not being run and since
getPackagesDirectory was changed this behavior had regressed.
Rename package-generator to main
:lipstick: Use trailing if