Tweaked build_rpm method to exclude . and .. directories.