Made scripts sh compatible and added cleanup script