fixed referencing firstdir script variable to add '$'