Patches to fix s3n:// filesytem quirks.

PTAL @etorreborre thanks. By the way I tried running the tests and keep getting the following message:
Internal error when running tests: `java.lang.OutOfMemoryError: PermGen space`

This is even after setting the flags: `SBT_OPTS=-Xms2048M -Xmx4096M -XX:MaxPermSize=2048m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled`
Ok let me take a stab at it, will submit a new PR shortly...