clone fixes for realpath issues