Removed extra require( 'path' )
Whitespace
Added overwrite option