Fixed folder choosing for -a and -p options