Converted from os.rename to os.system to move files.

This is to avoid 'OSError: [Errno 18] Invalid cross-device link', which was being generated when moving files with os.rename.