Fixes an issue where re-generate doesn't upload to cocoadocs

Closes #48
Use File.join to join two paths
Correctly check of a path ends with .podspec

Current behaviour would match .podspec within any part of the path
Remove trailing whitespace