added quoting to os command, failed with paths containing spaces