A utility function to copy a file from src to dst