fixing the dirs and some tries with optparse, yet -b error is there