files with . in name work, relative paths

Hi,

Found your builder, really liked it.  Tried to use it, but had two issues:
1)  paths with . in the file name like "my.module.id" were having problems with the ensureExtension function
2)  relative paths in specs were not working

This pull request handles those issues hopefully.  Thoughts?