Fixes for:
 * regexp less restrictive
 * s/os.copy/shutil.copy/