allow calling script from other directories. and be more windows friendly