Restored compatibility with other OSs than windows on the apply_at.py