fixing a dirname bug introduced when versioning bins