added support for bin path, moved pid dir into path mash