Replaced system calls with shutil

Removed several system() calls for moving/removing files on the system.
This is the first step in the direction to multi-platform support (see issue #28)