Fix for issue with pasting files that have no extension.  Still WIP due to errors further down the path.