improvement of script for relative directories