Use File.basename to get correct path